import request from '@/utils/request'

export function submit(data) {
  return request({
    url: 'buss/supervisionsidestation/add',
    method: 'post',
    data
  })
}

export function getOne(id) {
  return request.get('buss/supervisionsidestation/getOne?id='+id)
}

export function listPage(data) {
  return request.post('buss/supervisionsidestation/listPage', data)
}

export function del(ids) {
  return request({
    url: 'buss/supervisionsidestation/del',
    method: 'post',
    data: ids
  })
}

export function resubmit(data) {
  return request({
    url: 'buss/supervisionsidestation/edit',
    method: 'post',
    data
  })
}

export function getFillUnit(data) {
  return request.post('buss/supervisionsidestation/getFillUnit', data)
}

export default {
  submit,
  getOne,
  del,
  resubmit,
  listPage,
  getFillUnit,
}
